package com.yc.mybatis.mapper;

import com.yc.mybatis.entity.BillItem;
import com.yc.mybatis.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Company 源辰信息
 *
 * @author navy
 * @date 2024/10/20
 * Email haijunzhou@hnit.edu.cn
 */
public interface DemoMapper {

    List<User> selectAll();

    List<User> selectAllByAutoMap();

    User selectById(int id);

    User selectByNameAndPwd(@Param("name") String name, @Param("pwd") String pwd);

    List<User> selectByUser(User user);


    int insert(User user);
    int update(User user);
    int delete(int id);


    BillItem selectBillItemById(int id);

    BillItem selectBillItemById1(int id);



}
